package com.ly.heart.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.AssetsEntity;

/**
 * 资产卡片Mapper接口
 *
 * @author cxl
 * @date 2024-09-03
 */
public interface AssetsMapper extends BaseMapper<AssetsEntity> {
    /**
     * 查询资产卡片
     *
     * @param id 资产卡片ID
     * @return 资产卡片
     */
    public AssetsEntity selectAssetsEntityById(String id);

    /**
     * 查询资产卡片列表
     *
     * @param assetsEntity 资产卡片
     * @return 资产卡片集合
     */
    public List<AssetsEntity> selectAssetsEntityList(AssetsEntity assetsEntity);

    /**
     * 新增资产卡片
     *
     * @param assetsEntity 资产卡片
     * @return 结果
     */
    public int insertAssetsEntity(AssetsEntity assetsEntity);

    /**
     * 修改资产卡片
     *
     * @param assetsEntity 资产卡片
     * @return 结果
     */
    public int updateAssetsEntity(AssetsEntity assetsEntity);

    /**
     * 删除资产卡片
     *
     * @param id 资产卡片ID
     * @return 结果
     */
    public int deleteAssetsEntityById(String id);

    /**
     * 批量删除资产卡片
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAssetsEntityByIds(String[] ids);

    /**
     * 查询总数
     * @return
     */
    Integer queryCount();
}
